package day06;

public class ArrayDemo {
    public static void main(String[] args) {
        /*
        //6.数组的复制
        int[] a = new int[]{1,3,5,7,9,11};
        int[] b = new int[8];
        //System.arraycopy(a,1,b,2,4);//0,0,3,5,7,9,0,0
        //System.arraycopy(a,0,b,0,6);//1,3,5,7,9,11,0,0
        //System.arraycopy(a,4,b,2,2);//0,0,9,11,0,0,0,0
        //System.arraycopy(a,5,b,3,1);//0,0,0,11,0,0,0,0
        System.arraycopy(a,2,b,4,4);//0,0,0,0,5,7,9,11
        for (int i = 0; i < b.length; i++) {
            System.out.print(b[i]+"\t");
        }
         */

        //数组的扩容(创建了一个更大的新的数组，并将数据复制过去了)

    }
}